var express = require('express');
var router = express.Router();

const FoodTypeService = require('../server/service/foodtype.service.js');

router.get('/', function(req, res, next) {
    FoodTypeService.findAll(function(doc){
        if(doc.status == true){
            if(doc.data == {}){
                doc.message='暂无数据';
            }
        }
        res.send(doc);
    });

});

module.exports = router;